@echo off
title zip-package
set userPath=..\environment

REM package
rem call mvn clean install -Dmaven.test.skip=true

rem del file
rmdir DATA_PUSH /s /q

rem create README.txt
mkdir DATA_PUSH
mkdir DATA_PUSH\conf

copy /y .\start.bat DATA_PUSH
copy /y .\reset-environment.bat DATA_PUSH
copy /y .\set-environment.bat DATA_PUSH
copy /y .\README.txt DATA_PUSH
copy /y .\src\main\resources\conf\conf.json DATA_PUSH\conf
xcopy /y .\src\main\resources\channel-map.json DATA_PUSH /s /i
xcopy /y .\target\*.jar  DATA_PUSH\ /s
xcopy /y .\environment  DATA_PUSH\environment /s /i

%userPath%\7z\7z  a DATA_PUSH\DATA_PUSH.zip DATA_PUSH
echo.
echo -------completed!--------
choice /t 2 /d y /n >nul